﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCP.Master" AutoEventWireup="true" CodeBehind="WatchList.aspx.cs" Inherits="University.Workshop.WebApp.WatchList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style11
        {
            width: 78px;
        }
        .style12
        {
            width: 43px;
        }
        .style14
        {
            width: 101px;
        }
    .style15
    {
        width: 22px;
    }
    .style16
    {
        width: 105px;
    }
    .style17
    {
        width: 66px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="FormView" runat="server">
            <p>
                <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click"> Back To Products</asp:LinkButton>
            </p>
            <p>
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large" 
                    ForeColor="#000099" Text="My Watch List"></asp:Label>
            </p>
            <asp:Label ID="LblInfoComparation" runat="server" ForeColor="Red" 
                Text="You must select at least 2 products to compare!" Visible="False"></asp:Label>
            <br />
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DataList 
                ID="dlWatchList" runat="server" BackColor="White" 
                CellPadding="2" CellSpacing="2" ForeColor="Black" 
                onselectedindexchanged="dlWatchList_SelectedIndexChanged">
                <HeaderStyle BorderStyle="Inset" />
                <HeaderTemplate>
                    Products
                </HeaderTemplate>
                <FooterTemplate>
                </FooterTemplate>
                <ItemTemplate>
                    <table style="width:146%; height: 50px;">
                        <tr>
                            <td class="style12">
                                <asp:CheckBox ID="chkBox" runat="server" AutoPostBack="true" />
                            </td>
                            <td class="style14">
                                <asp:Label ID="Name" runat="server" Text='<%# Eval("RelatedProduct.Name") %>'></asp:Label>
                                <br />
                                <asp:Label ID="Name0" runat="server" Text='<%# Eval("Comment") %>' 
                                    Font-Italic="True" Font-Size="X-Small" ForeColor="Gray"></asp:Label>
                            </td>
                            <td class="style11">
                                <asp:Button ID="AddNote" runat="server" 
                                    CommandArgument='<%#Eval("RelatedProduct.ProductId") %>' 
                                    onclick="AddNote_Click" Text="Add a note" />
                            </td>
                            </td>
                            <td class="style15">
                                Price:</td>
                            <td class="style16">
                                <asp:Label ID="Price" runat="server" Text='<%# Eval("RelatedProduct.Price") %>'></asp:Label>
                                &nbsp;<asp:Label ID="Currency" runat="server" 
                                    Text='<%# Eval("RelatedProduct.Currency")  %>'></asp:Label>
                            </td>
                            <td class="style17">
                                <asp:Button ID="Delete" runat="server" 
                                    CommandArgument='<%# Eval("RelatedProduct.ProductId")  %>' 
                                    onclick="Delete_Click1" Text="Delete" />
                            </td>
                            <td>
                                <asp:LinkButton ID="LinkButton5" runat="server" 
                                    CommandArgument='<%#Eval("RelatedProduct.ProductId") %>' 
                                    onclick="LinkButton5_Click">Add to cart</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><asp:CheckBox 
                ID="chkSelectAll" runat="server" AutoPostBack="True" 
                oncheckedchanged="chkSelectAll_CheckedChanged" Text="Select all products" />
            <br />
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="compareButton" runat="server" 
                onclick="compareButton_Click" Text="Compare" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br />
        </asp:View>
        <asp:View ID="NoteView" runat="server">
        <h2>&nbsp;</h2> 
            <asp:LinkButton ID="LinkButton4" runat="server" onclick="LinkButton4_Click">[Clear All]</asp:LinkButton>
            <br />
            <asp:Label ID="Label2" runat="server" Text='<%#Eval("Product.Name") %>'></asp:Label>
            <asp:Label ID="Label3" runat="server" Visible="False" ></asp:Label>
            <br />
            <asp:TextBox ID="TextBox2" runat="server" Height="22px" Width="474px"></asp:TextBox>
            <br />
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button2" runat="server" Text="Save" onclick="Button2_Click" />
            &nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button3" runat="server" Text="Cancel" onclick="Button3_Click" />
        <br />

        
        </asp:View>
        <asp:View ID="EmptyCartView" runat="server">
            <h2>
                You are not watching any items.
            </h2>
            <br />
            &nbsp;To add items you&#39;re interested in and want to track, click Add to Watch list 
            from the item page.<br />
            <br />
            <asp:LinkButton ID="LinkButton3" runat="server" ForeColor="#000099" 
                onclick="LinkButton1_Click">Start shopping and search for great deals</asp:LinkButton>
            <br />
            <br />
        </asp:View>
    </asp:MultiView>
    <div>
        &nbsp;&nbsp;&nbsp;
        </div>
    <div>
    </div>
</asp:Content>
